package com.ruoyi.business.mapper;

import com.ruoyi.business.domain.BusinessTradeRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 交易记录Mapper接口
 * 
 * @author ruoyi
 * @date 2024-04-15
 */

public interface BusinessTradeRecordMapper 
{
    /**
     * 查询交易记录
     * 
     * @param id 交易记录主键
     * @return 交易记录
     */
    public BusinessTradeRecord selectBusinessTradeRecordById(Long id);

    /**
     * 查询交易记录列表
     * 
     * @param businessTradeRecord 交易记录
     * @return 交易记录集合
     */
    public List<BusinessTradeRecord> selectBusinessTradeRecordList(BusinessTradeRecord businessTradeRecord);

    /**
     * 查询交易记录列表
     *
     * @param businessTradeRecord 交易记录
     * @return 交易记录集合
     */
    public List<BusinessTradeRecord> selectBusinessTradeRecordListWithStrategyName(BusinessTradeRecord businessTradeRecord);

    /**
     * 新增交易记录
     * 
     * @param businessTradeRecord 交易记录
     * @return 结果
     */
    public int insertBusinessTradeRecord(BusinessTradeRecord businessTradeRecord);

    /**
     * 修改交易记录
     * 
     * @param businessTradeRecord 交易记录
     * @return 结果
     */
    public int updateBusinessTradeRecord(BusinessTradeRecord businessTradeRecord);

    /**
     * 删除交易记录
     * 
     * @param id 交易记录主键
     * @return 结果
     */
    public int deleteBusinessTradeRecordById(Long id);

    /**
     * 批量删除交易记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBusinessTradeRecordByIds(Long[] ids);

    BusinessTradeRecord selectBusinessTradeRecordByOrderNo( @Param("orderNo") String orderNo);

    List<BusinessTradeRecord> selectTodayTradeRecord();

    List<BusinessTradeRecord> selectBusinessTradeRecordEffec();
}
